--[[ 编码: JX-16-05 名称: 盘点单-查询面板-点查询按钮 作者:HAN 日期:2025-1-29 级别:固定 (说明本段代码在项目中不太会变化) 函数: Query 功能: 1)查询面板里点“查询”按钮 更改记录: V2.0 HAN 20250212 -- 改进了获取查询条件的方法,从 wms_count 中的标准函数获取 --]] jx_base = require( "jx_base" ) function Query( strLuaDEID ) local nRet, strRetInfo local ret_condition_type nRet, ret_condition_type, strCondition = jx_base.Get_CountPlan_QueryPanel_Condition( strLuaDEID, true ) if ( nRet == 1 ) then mobox.setInfo( strLuaDEID, strCondition ) return end if ( nRet > 1 ) then mobox.stopProgram( strLuaDEID, strCondition ) return end local is_base64 if ( ret_condition_type == 0 ) then is_base64 = false else is_base64 = true end local action = { { action_type = "set_query_condition", value = { condition = strCondition, oredr = "", base64 = is_base64 } } } nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) ) if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end end